#include <managers\event\event_manager.h>

namespace DelGE
{
	namespace Managers
	{
		namespace Event
		{
			queue<DelGEEvent> EventManager::qEventQueue;

			void EventManager::PushEvent(const DelGEEvent &rEvent)
			{
				qEventQueue.push(rEvent);
			}

			bool EventManager::PopEvent(DelGEEvent &rEvent)
			{
				if (!EventManager::qEventQueue.empty())
				{
					rEvent = qEventQueue.front();
					qEventQueue.pop();
					return true;
				}

				return false;
			}
		}
	}
}